home *** CD-ROM | disk | FTP | other *** search
-
-
-
- STRTOK C Library Procedures STRTOK
-
-
-
- NNAAMMEE
- strtok, strsep - string token operations
-
- SSYYNNOOPPSSIISS
- cchhaarr **ssttrrttookk((ssttrr,, sseepp))
- cchhaarr **ssttrr,, **sseepp;;
-
- cchhaarr **ssttrrsseepp((ssttrr,, sseepp))
- cchhaarr **ssttrr,, **sseepp;;
-
- _S_t_r_t_o_k is used to isolate sequential tokens in a null-
- terminated string, _s_t_r. These tokens are separated in the
- string by oonnee oorr mmoorree of the characters in _s_e_p. The first
- time that _s_t_r_t_o_k is called, _s_t_r should be specified; subse-
- quent calls, wishing to obtain further tokens from the same
- string, should pass a null pointer instead. The separator
- string, _s_e_p, must be supplied each time, and may change
- between calls. _S_t_r_t_o_k returns a pointer to the start of
- each subsequent token in the string, after replacing the
- token itself with a NUL character. When no more tokens
- remain, a null pointer is returned.
-
- _S_t_r_s_e_p behaves similarly to _s_t_r_t_o_k with the exception that
- the tokens in the string are separated by single occurrences
- of separator characters. This routine was added to allow
- handling blank fields.
-
- BBUUGGSS
- There is no way to get tokens from multiple strings simul-
- taneously.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Sprite v1.0 November 14, 1988 1
-
-
-
-